package com.core.util;

import java.util.Random;

public class DspRandom {
	
	public static final String allChar = "ABCDEFGHIJKHLMNOPQRSTUVWXYZ";
	
	/**
	 * 自动产生公司编码
	 * @param nIndex
	 * @return
	 */
	public static String getCompanyNo(String nIndex){
		Random random = new Random();
		StringBuffer sb = new StringBuffer();
		for(int i = 0 ; i < 10 ;i++){
			sb.append(allChar.charAt(random.nextInt(allChar.length())));
		}
		return sb.toString();
	}
}
